export function apiNewList(pageNum, pageSize) {
	return new Promise((resolute, reject)=>{
		//延时一秒,模拟联网
		setTimeout(function() {
			try {
				let list = [];
				if (!pageNum) {
					//模拟下拉刷新返回的数据
					let id=new Date().getTime();
					let newObj = {
						id:id,
						title:`测试${id}条数据`,
						content: "新兴家电销售上扬，健康家电乘势而起，传统企业与社交电商平台紧密合作，渠道合纵连横加速进行，5G、人工智能等风口催生出新的消费场",
						url:"/pages/index/index_Custom/index_content_column/index_content_detail.vue",
						time:"2020-5-11"
					};
					list.push(newObj);
				} else {
					//模拟上拉加载返回的数据
					for (let i = 0; i < pageSize; i++) {
						let upIndex = (pageNum - 1) * pageSize + i + 1;
						let newObj = {
							id:upIndex,
							title: "【新闻" + upIndex + "】 标题标题标题标题标题",
							content: "新兴家电销售上扬，健康家电乘势而起，传统企业与社交电商平台紧密合作，渠道合纵连横加速进行，5G、人工智能等风口催生出新的消费场",
							url:"/pages/index/index_Custom/index_content_column/index_content_detail.vue",
							time:"2020-5-11"
						};
						list.push(newObj);
					}
					console.log("page.num=" + pageNum + ", page.size=" + pageSize + ", curPageData.length=" + list.length);
				}
				resolute(list);
			} catch (e) {
				reject(e);
			}
		}, 1000)
	})
}
